#!/bin/sh
# 修正IDEA 的项目设置
project_path="/Users/whuanghkl/code/mygit/demo/stub_test2"

sed -i '' 's/target\/classes/src\/main\/webapp\/WEB-INF\/classes/g' $project_path/stub_test.iml

sed -i '' 's/target\/test-classes/src\/main\/webapp\/WEB-INF\/classes/g' $project_path/stub_test.iml

sed -i '' 's/target\/.*-SNAPSHOT</src\/main\/webapp</g' $project_path/.idea/artifacts/stub_test_war_exploded.xml
rm -fr $project_path/.idea/artifacts/*_war.xml